# CouponCollect.R ## Function simcollect(n) simulates the ## coupon collector's problem. ## How many draws are required to get a full set of coupons? simcollect <-function(n) { coupons <- 1:n # set of coupons collect <- numeric(n) nums <-0 while (sum(collect)